package com.link;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.util.StopWatch;


@EnableScheduling
@SpringBootApplication(scanBasePackages = "com.link")
@Slf4j
public class AppStart {
    public static void main(String[] args) {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start();
        SpringApplication.run(AppStart.class, args);
        stopWatch.stop();
        log.error("#### 主服务启动成功，耗时：{}秒", stopWatch.getTotalTimeSeconds());
    }


}